#这个简化模板（删除了lvgl文件夹与lv_drivers文件夹中的所有.c文件）用于开发板运行，lvgl库与lv_drivers库已经编译好存放在本级目录的lib文件下
#你需要把你的ui文件导入本级目录
#在本级目录下新建build目录，使用“cmake -DCMAKE_C_COMPILER=/usr/local/arm/5.4.0/usr/bin/arm-linux-gcc -DCMAKE_CXX_COMPILER=/usr/local/arm/5.4.0/usr/bin/arm-linux-g++ ..”命令编译

cmake_minimum_required(VERSION 3.12.4)
project(lvgl_arm)

include_directories(.)
include_directories(./lvgl)
include_directories(./lv_drivers)
include_directories(./ui)

#add_subdirectory(lvgl)
#add_subdirectory(lv_drivers)
add_subdirectory(ui)


add_executable(${PROJECT_NAME} main.c)

target_link_libraries(${PROJECT_NAME} PRIVATE ui lvgl lv_drivers)
target_link_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/lib)